/*
 * GL_EXTENSIONS.h
 *
 *	Another giant bloated macro for importing GL stuffs. Has alternate behaviour in case an extension doesn't load.
 *
 *  Created on: May 3, 2013
 *      Author: zapmunk
 */

#define _GL_EXTENSIONS \
init(glGenFramebuffers, void, (GLsizei n, GLuint* ids));\
init(glDeleteFramebuffers, void, (GLsizei n, GLuint* ids));\
init(glBindFramebuffer, void, (GLenum target, GLuint framebuffer));\
init(glFramebufferTexture, void, (GLenum target, GLenum attachment, GLuint texture, GLint level));\
init(glCheckFramebufferStatus, GLenum, (GLenum target));\
\
init(glGenFramebuffersEXT, void, (GLsizei n, GLuint* ids));\
init(glDeleteFramebuffersEXT, void, (GLsizei n, GLuint* ids));\
init(glBindFramebufferEXT, void, (GLenum target, GLuint framebuffer));\
init(glFramebufferTexture2DEXT, void, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level));\
init(glCheckFramebufferStatusEXT, GLenum, (GLenum target));\
\
init_adapt(\
static void _adapt_glFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLuint texture, GLint level) {\
	glFramebufferTexture2DEXT(target, attachment, GL_TEXTURE_2D, texture, level);\
}\
);\
//EMPTY LINE
